package com.woniuxy.tfss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.tfss.entity.UserAccountRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户账户记录
 */
@Mapper
public interface UARecordMapper extends BaseMapper<UserAccountRecord> {

    @Select("select * from tfss_useraccountrecord where orderno=#{no}")
    UserAccountRecord getByNo(String no);

    @Select("select * from tfss_useraccountrecord where userid=#{userId}")
    List<UserAccountRecord> getByUserId(Integer userId);
}
